﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.StockContext;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.StockContext
{
    /// <summary>
    /// 物料条码仓储接口
    /// </summary>
    public interface IMaterialBarcodeRepository : IAggRootRepository<MaterialBarcode>
    {
        #region # 分页获取物料条码列表 —— ICollection<MaterialBarcode> FindByPage(Guid? materialId...
        /// <summary>
        /// 分页获取物料条码列表
        /// </summary>
        /// <param name="materialId">物料定义Id</param>
        /// <param name="materialLotId">物料批次Id</param>
        /// <param name="facilityIds">工厂模型Id集</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>物料条码列表</returns>
        ICollection<MaterialBarcode> FindByPage(Guid? materialId, Guid? materialLotId, IList<Guid> facilityIds, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
